<?php
require_once '../SortClassThis.php';
//测试数据
$testArray = array(9, 7, 5, 1, 6, 8, 2, 4, 3, 10);
$test      = new SortClass();
echo "测试数据：9, 7, 5, 1, 6, 8, 2, 4, 3, 10" . "<br>" . "排序结果：" . "<br>";
echo "选择排序";
$test->testData($testArray)->selectionSort()->output();
echo "冒泡排序";
$test->testData($testArray)->bubleSort()->output();
echo "插入排序";
$test->testData($testArray)->insertionSort()->output();
